:root {
  --font-base: clamp(1rem, 2.5vw, 1.25rem);
  --font-heading: clamp(1.5rem, 4vw, 2rem);
}

#installDialog{

  position: fixed;
  top: 2.5%;
  left: 50%;
  transform: translate(-50%, 0);

  /* width: 800px; */

  font-family: 'Segoe UI', sans-serif;
  font-size: var(--font-base);

  margin: 0;
  padding: 2rem;
  
  background: #f9f9f9;
  color: #333;
}

#installDialog::backdrop{
  background-color: black;
  opacity: 0.8;
}

.dialog-title {
  font-size: var(--font-heading);
  /* font-size: 2rem; */
  text-align: center;
  margin-bottom: 1rem;
}

.device-title {
  color: #2c3e50;
  font-size: calc(var(--font-base) + 0.2rem);
}

.toggle-section {
  text-align: center;
  margin-bottom: 2rem;
}

.toggle-label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
  font-size: var(--font-base);
}

.toggle-wrapper {
  display: flex;
  position: relative;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
  max-width: 600px;
  margin: auto;
  box-shadow: inset 0 0 0 1px #ccc;
}

.toggle-option {
  flex: 1;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--font-base);
}

.toggle-option .material-icons {
  font-size: 1.2em;
}

.toggle-option.active {
  font-weight: bold;
  color: #fff;
}

.toggle-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 33.3333%;
  height: 100%;
  background: #3498db;
  transition: transform 0.3s ease;
  z-index: 0;
  border-radius: 999px;
}

.instructions {
  max-width: 700px;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  padding: 0.5em 1.0em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  animation: fadeIn 0.4s ease-in-out;
}

.instructions h3 {
  margin-bottom: 1rem;
}

.instructions ol {
  text-align: left;
  padding-left: 1.2rem;
}

.instructions li {
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.note {
  font-size: 1.25rem;
  
  
  color: #856404;
  background-color: #fff3cd;
 
  padding: 1rem;
  margin: 1rem 0rem;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  
}

.icon-inline {
  vertical-align: middle;
  height: 1.2em;
  /* margin-left: 0.3em; */
}

.qr-section {
  text-align: center;
  margin-top: 2rem;
}

.qr-section img {
  max-width: 200px;
  margin-top: 1rem;
}

.copy-url {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.copy-url button {
  font-size: var(--font-base);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  background: #3498db;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.copy-url button:hover {
  background: #217dbb;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }
  .qr-section img {
    max-width: 150px;
  }
}